import java.util.Scanner;

public class TimeReportingAssistant {
    public static void main(String[] args) {
        String[] time= new String[] {"zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen","twenty","thirty","forty","fifty"};
        Scanner input=new Scanner(System.in);
        int h=input.nextInt();
        int m=input.nextInt();
        input.close();
        if(m==0) {
            if(h<=20)             //整点并且20点以内，如 eight o'clock
                System.out.println(time[h]+" o'clock");
            else if(h>20)        //整点并且20点以后，如twenty-one o'clock
                System.out.println("twenty-"+time[h-20]+" o'clock");
        }else if(m<=20) {
            if(h<=20)
                System.out.println(time[h]+" "+time[m]);
            else if(h>20)
                System.out.println("twenty-"+time[h-20]+" "+time[m]);
        }else {
            if(h<=20)
                System.out.println(time[h]+" "+time[m/10-2+20]+" "+time[m%10]);
            else if(h>20)
                System.out.println("twenty"+" "+time[h-20]+" "+time[m/10-2+20]+" "+time[m%10]);
        }
    }
}
